﻿using Microsoft.AspNetCore.Identity;
using System;

namespace brand.cyt369.com.models.Identity
{
    public class SysUser : IdentityUser<int>, IBaseObject<int>
    {
        public SysUser() { }

        /// <summary>
        /// 唯一编码(内部编码)
        /// </summary>
        public string? UniqueCode { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        public string? FullName { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        public string? NickName { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        public string? Address { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public string? Gender { get; set; }

        /// <summary>
        /// 用户类型
        /// </summary>
        public int UserType { get; set; }

        /// <summary>
        /// 用户头像远程URL
        /// </summary>
        public string? HeaderUrl { get; set; }

        /// <summary>
        /// 用户头像本地数据
        /// </summary>
        public string? Avatar { get; set; }

        /// <summary>
        /// 用户主页http地址
        /// </summary>
        public string? HomePageURL { get; set; }

        /// <summary>
        /// 所属省份
        /// </summary>
        public int? ProvinceID { get; set; }

        /// <summary>
        /// 所属城市
        /// </summary>
        public int? CityID { get; set; }

        /// <summary>
        /// 备注信息
        /// </summary>
        public string? Remark { get; set; }

    }

    public class WcfUser {
        /// <summary>
        /// true:成功; false：失败
        /// </summary>
        public bool Result { get; set; }

        /// <summary>
        /// 状态消息
        /// </summary>
        public string? Msg { get; set; }

        /// <summary>
        /// 状态码
        /// </summary>
        public int Code { get; set; }

        public SysUser Data { get; set; }
    }
}
